//=============================================================================
#ifndef _CPLAYER_H_
#define _CPLAYER_H_

#include "Entity.h"
#include "Projectile.h"
#include "AppStateManager.h"

//=============================================================================
class CPlayer : public CEntity {
    public:
        CPlayer();

		bool OnLoad(char* File, int Width, int Height, int MaxFrames);

        void OnLoop();

        void OnRender(SDL_Surface* Surf_Display);

        void OnCleanup();

        void OnAnimate();

        bool OnCollision(CEntity* Entity);

		void RunCollision(CEntity* Entity);
		
		void CastProjectile(int identity);
		
		sf::Packet x;

		CProjectile* newProjectile;

		int lastCollision;
};
extern int playerCounter; // counts total amount of players that has been added during gameplay.
//=============================================================================

#endif


